// set area's id to hidden field(id:school_area_id)
function select_area(dom_id, id, title, notice_msg) {  
  $(dom_id).val(id);
  var notice = $('#areas-list-notice');
  notice.html(notice_msg + title)
  $('#area-title').html(title);
  school_title_input = $('#school_title');
  school_title_input.val(title + school_title_input.val());
  notice.show();
  $('#areas-list-spinner').hide();
  $('#areas-list').hide();
}

// ajax活动指示器
$(function() {
    var $indicator = $('.spinner');
    $(document).ajaxSend(function() {
        $indicator
						.hide()
						.show();
    });
    $(document).ajaxStop(function() {
        $indicator.hide();
    });
});